Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: MIME field contents removed when converted to CD
Feedback Type: Problem
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always

We have VB code in Outlook trying to add the contents of an email from MS Outlook into an existing Notes document. The Notes doc has a rich text item named "Body", which is in standard Notes rich text format (CD). The code below grabs the html from the Outlook email and creates a new Body field in a temporary Notes doc.

m_Session.ConvertMime = False
NotesStream = m_Session.CreateStream()
NotesStream.WriteText(AppendedEmailHTMLFromOutlook)
MimeBody = objNotesDocumentTemp.CreateMIMEEntity("Body")
MimeHTMLPart = MimeBody.CreateChildEntity()
MimeHTMLPart.SetContentFromText(NotesStream, "text/html; charset='iso-8859-1'", 1726)

It doesn't make a difference whether I have True or False for the session.ConvertMime, it never converts it. At this point I can save the temporary doc and the contents display as expected but the field is MIME and we want to append it to the end of an existing Notes doc which has a body field of rich text. If I attempt to convert it by appending text and saving, it just creates an empty Body field that is now of type 'rich text' with a space as the only contents.

rti.AppendText(" ")
objNotesDocumentTemp.Save(True, True)

I tried that trick from this page: http://www-01.ibm.com/support/docview.wss?uid=swg21160191

The other attempt to convert the MIME to rich text was to copy all items from this temp doc to another temp doc. But that didn't help either. I end up with an empty rich text item named Body. All that html MIME content just disappears.

This smae code works correctly on PCs with Notes 6.5 client, but won't for 8.5.2.

Is there a known work around?


Feedback number WEBB8UHC2T created by ~Tony Minvelutexoni on 05/21/2012

Status: Closed
Comments: The answer turned out to be an extra quote that was getting added in the html from Outlook. This made the html invalid.

MIME field contents removed when co... (~Tony Minvelute... 21.May.12)
. . code to try convert the mime to ric... (~Tony Minvelute... 25.May.12)
. . resolved (~Tony Minvelute... 30.May.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS